	<form name="form_acao" id="form_acao" action="#" method="post">
		<input type="hidden" name="codigo" id="codigo" value=""/>
		<input type="hidden" name="acao" id="acao" value=""/>
	</form>
	<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="alpha bgDestaque ">
      <tr>
        <td align="center" colspan="2" class="bold bg_mercurio terra paddingTotal5 bordaFormResp">AGENDAMENTOS</td>
      </tr>
      <tr>
        <td colspan="2"align="center"  class="msgNaoLida bold gama terra paddingTotal bordaFormResp">{$data}</td>
      </tr>
      <tr>
      	<td width="100%" valign="top">
      		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="alpha">
      			 <tr>
      				<td class="bg_mercurio bold terra paddingTotal2" style="width:10%; border:1px #cccccc solid;">Cliente</td>
      				<td class="bg_mercurio bold terra paddingTotal2" style="width:27%; border:1px #cccccc solid; border-left:0px;">Unidade</td>
      				<td class="bg_mercurio bold terra paddingTotal2" style="width:38%; border:1px #cccccc solid; border-left:0px;">Sala</td>
      				<td class="bg_mercurio bold terra paddingTotal2" style="width:25%; border:1px #cccccc solid; border-left:0px;">Periodo</td>
      			 </tr>  
      		    {assign var='bg1' value='#FBFBFB'}    
				{assign var='bg2' value=''}
				{assign var='i' value=1}
				
      		    {foreach name=lista from=$agenda item=age key=k}
	      		    {if $i++ is odd by 1} 
					   {assign var='bgcolor' value=$bg1} 
					{else} 
					   {assign var='bgcolor' value=$bg2} 
					{/if}
					<tr bgcolor="{$bgcolor}">
			        	<td colspan="4" class="bold msgNaoLida paddingTop10 paddingBottom10" style="width:100%; border:1px #cccccc solid; border-top:0px; border-bottom:0px; ">{$k}:00</td>
			        </tr>
			        <tr bgcolor="{$bgcolor}">
				        <td align="left" colspan="4" style="border:1px #cccccc solid; border-top:0px; ">
				        {foreach name=lista2 from=$agenda[$k] item=det key=k2} 
				        	{$det}
				        	<br/>
				        {/foreach}
				        </td>
			        </tr>
				{/foreach}
			</table>
      	</td>
      	<!-- 
      	<td valign="top">
      		<b>PRÉ-AGENDAMENTOS</b>
      		<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="alpha">
      		    {foreach name=lista from=$agendaPre item=age key=k}
					<tr>
			        <td align="left"><b>{$k}:00</b></td>
			        </tr>
			        <tr>
			        <td align="left">
			        {foreach name=lista2 from=$agendaPre[$k] item=det}
			        	{$det}<br/>
			        {/foreach}
			        </td>
			        </tr>
				{/foreach}
			</table>
      	</td>
      	 -->
      </tr>
    </table>
{literal} 
<script type="text/javascript"> 
$('.ancora_cliente').openDOMWindow({ 
	height:350, 
	width:700, 
	positionType:'fixed', 
	positionTop:50, 
	positionLeft:200, 
	eventType:'click', 
	loader:1, 
	loaderImagePath:'public/images/loading.gif', 
	loaderHeight:30, 
	loaderWidth:30, 
	windowSource:'ajax', 
	windowHTTPType:'get' 
}); 
</script>
{/literal}
